import request from '@/utils/request'

// 查询岗位列表
export function selectRecord(query) {
  return request({
    url: '/system/record/selectRecord',
    method: 'get',
    params: query
  })
}


export function getPlanListByUid(uid) {
  return request({
    url: '/system/record/getPlanListByUid/' + uid,
    method: 'get'
  })
}


export function getCalculateList(query) {
  return request({
    url: '/system/record/getCalculateList',
    method: 'get',
    params: query
  })
}


export function getCalculateEmp(query) {
  return request({
    url: '/system/record/getCalculateEmp',
    method: 'get',
    params: query
  })
}

export function selectAssessRecord(query) {
  return request({
    url: '/system/record/selectAssessRecord',
    method: 'get',
    params: query
  })
}


export function getEmpListByAId(query) {
  return request({
    url: '/system/record/getEmpListByAId',
    method: 'get',
    params: query
  })
}


export function sponsorAssess(data) {
  return request({
    url: '/system/record/sponsorAssess',
    method: 'post',
    data: data
  })
}

export function getUsers(aid) {
  return request({
    url: '/system/record/getUsers/' + aid,
    method: 'get'
  })
}


export function updateEmp(data) {
  return request({
    url: '/system/record/updateEmp',
    method: 'post',
    data: data
  })
}


export function getFlowByAid(aid) {
  return request({
    url: '/system/record/getFlowByAid/'+aid,
    method: 'get'
  })
}

export function getProjectByAid(aid) {
  return request({
    url: '/system/record/getProjectByAid/'+aid,
    method: 'get'
  })
}


export function updateCheckStatus(aid,uid,checkStatus) {
  return request({
    url: '/system/record/updateCheckStatus/'+aid+'/'+uid+'/'+checkStatus,
    method: 'get'
  })
}

export function selectFlowByAid(aid) {
  return request({
    url: '/system/record/selectFlowByAid/'+aid,
    method: 'get'
  })
}


export function updateFlow(data) {
  return request({
    url: '/system/record/updateFlow',
    method: 'put',
    data:data
  })
}


export function getCauseByEid(eid) {
  return request({
    url: '/system/record/getCauseByEid/'+eid,
    method: 'get'
  })
}
